package com.tanhua.autoconfig;

import com.tanhua.autoconfig.properties.JWTProperties;
import com.tanhua.autoconfig.template.JWTTemplate;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;

@EnableConfigurationProperties({
        JWTProperties.class
})
public class JWTAutoConfiguration {

    @Bean
    public JWTTemplate jwtTemplate(JWTProperties properties) {
        return new JWTTemplate(properties);
    }
}
